#include <iostream>
#include <string>

class Draw {
private:
    int height;

public:
    Draw(int height) {
        this->height = height;
    }

    void drawTriangle() {
        for (int i = 0; i < height; i++) {
            for (int j = 0; j < height - i; j++) {
                std::cout << "* ";
            }
            std::cout << std::endl;
        }
    }

    void drawRectangle() {
        for (int i = 0; i < height; i++) {
            for (int j = 0; j < height; j++) {
                std::cout << "* ";
            }
            std::cout << std::endl;
        }
    }

    void drawSquare() {
        drawRectangle();
    }

    void drawParallelogram() {
        for (int i = 0; i < height; i++) {
            for (int j = 0; j < i; j++) {
                std::cout << "  ";
            }
            for (int j = 0; j < height - i; j++) {
                std::cout << "* ";
            }
            std::cout << std::endl;
        }
    }
};

int main() {
    Draw draw(5);
    draw.drawTriangle();
    std::cout << std::endl;
    draw.drawRectangle();
    std::cout << std::endl;
    draw.drawSquare();
    std::cout << std::endl;
    draw.drawParallelogram();

    return 0;
}
